package top.kindaries.mapper;

import org.apache.ibatis.annotations.Mapper;
import top.kindaries.model.Action;
import top.kindaries.model.User;

import java.util.List;

@Mapper
public interface UserMapper {

    User selUserByName(String userName);

    User selUserByLogin(User record);

    List<User> selUserByKey(User record);

    int insUser(User record);

    int updUser(User record);

    int delUser(Integer[] ids);

    int insUserAction(Integer userId, Integer actionId);

    List<Action> selActionByUserId(Integer userId);

    int delUserAction(Integer[] ids);

}